package com.java.common.exception;


import lombok.Getter;

public enum BizCodeEnum {
    VALIDATE_EXCEPTION(10001,"参数格式校验失败！"),
    UNKNOW_EXCEPTION(10000,"系统未知错误"),
    PRODUCT_UP_EXCEPTION(10002,"商品上架错误"),
    SEND_CODE_MANY(10003,"发送验证码太频繁"),
    NO_STOCK_EXCEPTION(10006,"商品库存不足"),
    ACCOUNT_OR_PASSWORD_ERROR(10004,"账户或密码错误");


    @Getter
    private Integer code;
    @Getter
    private String message;

    BizCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
